package com.yzk.train.business.response;

import com.alibaba.fastjson2.JSONWriter;
import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ToString
public class DailyTrainStationQueryResp {

    // id
    @JSONField(serializeFeatures = JSONWriter.Feature.BrowserCompatible)
    private Long id;
    // 日期
    @JSONField(format = "yyyy-MM-dd")
    private Date date;
    // 车次编号
    private String trainCode;
    // 站序
    private Integer index;
    // 站名
    private String name;
    // 站名拼音
    private String namePinyin;
    // 进站时间
    @JSONField(format = "HH:mm")
    private Date inTime;
    // 出站时间
    @JSONField(format = "HH:mm")
    private Date outTime;
    // 停站时长
    @JSONField(format = "HH:mm")
    private Date stopTime;
    // 里程（公里）|从上一站到本站的距离
    private BigDecimal km;

}
